package yf.mall.dysdk.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;

/**
 * @author yxmds
 */
@Data
public class DyKolOrder {

    /**
     * 订单号
     */
    @JSONField(name = "order_id")
    private Long orderId;

    /**
     * 商品id
     */
    @JSONField(name = "product_id")
    private Long productId;

    /**
     * 商品名称
     */
    @JSONField(name = "product_name")
    private String productName;

    /**
     * 商品图片URL
     */
    @JSONField(name = "product_img")
    private String productImg;

    /**
     * 作者账号昵称(抖音/火山作者)
     */
    @JSONField(name = "author_account")
    private String authorAccount;

    /**
     * 作者抖音open_id
     */
    @JSONField(name = "author_openid")
    private String authorOpenid;

    /**
     * 商家名称
     */
    @JSONField(name = "shop_name")
    private String shopName;

    /**
     * 订单支付金额，单位分
     */
    @JSONField(name = "total_pay_amount")
    private Long totalPayAmount;

    /**
     * 达人佣金率，此处保存为真实数据x1万之后，如真实是0.35，这里是3500
     */
    @JSONField(name = "commission_rate")
    private Long commissionRate;

    /**
     * 订单状态(PAY_SUCC:支付完成 REFUND:退款 SETTLE:结算 CONFIRM: 确认收货)
     */
    @JSONField(name = "flow_point")
    private String flowPoint;

    /**
     * App名称（抖音，火山）
     */
    @JSONField(name = "app")
    private String app;

    /**
     * 更新时间 [联盟侧订单更新时间]
     */
    @JSONField(name = "update_time")
    private Date updateTime;

    /**
     * 付款时间
     */
    @JSONField(name = "pay_success_time")
    private Date paySuccessTime;

    /**
     * 结算时间，结算前为空字符串
     */
    @JSONField(name = "settle_time")
    private Date settleTime;

    /**
     * 预估参与结算金额
     */
    @JSONField(name = "pay_goods_amount")
    private Long payGoodsAmount;

    /**
     * 实际参与结算金额
     */
    @JSONField(name = "settled_goods_amount")
    private Long settledGoodsAmount;

    /**
     * 达人预估佣金收入，单位分
     */
    @JSONField(name = "estimated_commission")
    private Long estimatedCommission;

    /**
     * 达人实际佣金收入，单位分
     */
    @JSONField(name = "real_commission")
    private Long realCommission;

    /**
     * 其他
     */
    @JSONField(name = "extra")
    private String extra;

    /**
     * 商品数目
     */
    @JSONField(name = "item_num")
    private Long itemNum;

    /**
     * 店铺ID
     */
    @JSONField(name = "shop_id")
    private Long shopId;

    /**
     * 退款订单退款时间
     */
    @JSONField(name = "refund_time")
    private Date refundTime;

    /** 分销订单相关参数 */
//        @JSONField(name = "pid_info")
//        private PidInfo pidInfo;

    /**
     * 总佣金（预估），对应百应订单明细中的总佣金
     */
    @JSONField(name = "estimated_total_commission")
    private Long estimatedTotalCommission;

    /**
     * 预估平台技术服务费
     */
    @JSONField(name = "estimated_tech_service_fee")
    private Long estimatedTechServiceFee;

    /**
     * 选品App client_key
     */
    @JSONField(name = "pick_source_client_key")
    private String pickSourceClientKey;

    /**
     * 选品来源自定义参数
     */
    @JSONField(name = "pick_extra")
    private String pickExtra;

    /**
     * 达人抖音号/火山号
     */
    @JSONField(name = "author_short_id")
    private String authorShortId;

    /**
     * 带货体裁。shop_list：橱窗；video：视频；live：直播；others：其他(如图文、微头条、问答、西瓜长视频等)
     */
    @JSONField(name = "media_type")
    private String mediaType;

    /**
     * 订单消息才包含
     */
    private Long challenge;


}
